package com.iatinspur.learn2;

import com.iatinspur.pojo.Student;
import jdk.internal.org.objectweb.asm.tree.MultiANewArrayInsnNode;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * 第13集 MAT 支配树
 *           深堆 浅堆
 *
 *  -XX:+HeapDumpBeforeFullGC -XX:HeapDumpPath=D:\dump -Xmx60m -Xms30m
 */
public class Learn_5_JVM {
    public static void main(String[] args) {
        Student t1 = new Student();
        Student t2 = new Student();
        Student t3 = new Student();

        String s1 = "黄飞";
        String s2 = "紫飞";
        String s3 = "蓝飞";

        t1.beLike.add(s1);
        t2.beLike.add(s2);
        t2.beLike.add(s1);
        t3.beLike.add(s3);

        s1 = null;
        s2 = null;
        s3 = null;

        System.out.println(t1.beLike);
        System.gc();

    }
}
